package com.warm.base.design.s_flyweight;

/**
 * @Date: 2019/11/22 13:49
 * @Author: LChuang
 * @Description:
 */
public class ConcreteFlyweight extends Flyweight {
    /**
     * 享元角色必须接受外部状态
     *
     * @param extrinsic
     */
    protected ConcreteFlyweight(String extrinsic) {
        super(extrinsic);
    }

    @Override
    public void operate(String extrinsic) {
        System.out.println("ConcreteFlyweight operate: " + extrinsic);
    }
}
